home *** CD-ROM | disk | FTP | other *** search
/ Columbia Kermit / kermit.zip / newsgroups / misc.19970104-19970326 / 000370_news@columbia.edu _Thu Mar 6 09:53:45 1997.msg < prev    next >
Internet Message Format  |  2020-01-01  |  3KB

  1. Return-Path: <news@columbia.edu>
  2. Received: from newsmaster.cc.columbia.edu (newsmaster.cc.columbia.edu [128.59.35.30])
  3.     by watsun.cc.columbia.edu (8.8.5/8.8.5) with ESMTP id JAA12384
  4.     for <kermit.misc@watsun.cc.columbia.edu>; Thu, 6 Mar 1997 09:53:45 -0500 (EST)
  5. Received: (from news@localhost)
  6.     by newsmaster.cc.columbia.edu (8.8.5/8.8.5) id JAA06492
  7.     for kermit.misc@watsun; Thu, 6 Mar 1997 09:53:44 -0500 (EST)
  8. Path: news.columbia.edu!watsun.cc.columbia.edu!fdc
  9. From: fdc@watsun.cc.columbia.edu (Frank da Cruz)
  10. Newsgroups: comp.protocols.kermit.misc
  11. Subject: Re: Connecting K95 to a port opened by another programm?
  12. Date: 6 Mar 1997 14:53:38 GMT
  13. Organization: Columbia University
  14. Lines: 45
  15. Message-ID: <5fmlpi$9r5$1@apakabar.cc.columbia.edu>
  16. References: <331e3232.24522307@news.fu-berlin.de>
  17. NNTP-Posting-Host: watsun.cc.columbia.edu
  18. Xref: news.columbia.edu comp.protocols.kermit.misc:6706
  19.  
  20. In article <331e3232.24522307@news.fu-berlin.de>,
  21. Joachim von Jena <jvjena@cs.tu-berlin.de> wrote:
  22. : I have to understand more of the host-mode scripts of K95 because I
  23. : want to modify them to embed the K95-Hostmode into the Hostmode of the
  24. : brandnew BGFAX32 programm. BGFAX32 for Win95/NT (like BGFAX for DOS)
  25. : can handle the so called "adaptive answering" mode of newer modems. 
  26. :     
  27. :     (please see http://www.blkbox.com/~bgfax 
  28. :         for more information on BGFAX of B.J.Guillot)
  29. : BGFAX handles the fax calls by itself and passes  data calls to
  30. : another terminal-programm which is called by a BGFAX batchfile.
  31. : Therefore it would be necessary for K95 in hostmode _not_ to
  32. : (auto-)answer a call  but to handle an already open COM-port.
  33. : My question is:
  34. : Is this possible simply by replacing the command "answer" near the end
  35. : of the the hostmdm.ksc script by a "connect" to achieve this?
  36. : (I did not find an _exact_ definition of the "answer" command of K95.
  37. : I would gess  "answer"  is equivalent to  "output \v(m_aa_on)")
  38. :  
  39. It's a lot more than that -- it also invokes the modem-specific code to
  40. read and handle messages from the modem, and to return appropriate success
  41. or error codes.  It also can time out after any interval you specify, etc.
  42.  
  43. You'll note that the hostmode script (host.ksc) is independent of the
  44. connection type, and is "front-ended" by a collection of short scripts for
  45. each type of connection: hostmdm.ksc for modems, hosttcp.ksc for TCP/IP, etc.
  46. Each of these scripts "receives" a connection, but in a different way, and
  47. then the main script just uses it.
  48.  
  49. In order for another *program* to invoke the host-mode script, it will need
  50. to pass the file descriptor of the open COM port to K95.  Something like:
  51.  
  52.   d:\k95\k95 hostmode.ksc -l n
  53.  
  54. where "n" is a number.  You can't just give the COM port device name, because
  55. I don't think Windows will let a second application open the same COM port.
  56.  
  57. We'll be happy to work with you on this; if you have any further questions,
  58. send them by email to kermit-support@columbia.edu.
  59.  
  60. - Frank